package liumengbaio.lolzhangyoubao.Activity.Fragment;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import liumengbaio.lolzhangyoubao.Activity.Activity.RealShowRoleActivity;
import liumengbaio.lolzhangyoubao.R;

/**
 * Created by lanouhn on 16/9/9.
 */
public class ComunityFragmentRealShow extends Fragment{
    private Button check_role;
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        return inflater.inflate(R.layout.comunity_fragment_real_show,null);
    }

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        initView(getView());
        initData();
    }

    private void initData() {
        check_role.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent_check_role=new Intent(getActivity(),RealShowRoleActivity.class);
                startActivity(intent_check_role);
            }
        });
    }

    private void initView(View view) {
        check_role= (Button) view.findViewById(R.id.check_role);
    }
}
